home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- checkExt = "jpg"
- newExt = ".jpg"
- myCast = (the mouseMember).castLibNum
- lastCastMem = the number of castMembers of castLib myCast
- saveItemDelimiter = the itemDelimiter
- the itemDelimiter = "."
- repeat with i = 1 to lastCastMem
- myname = member(i, myCast).name
- X = the last item in myname
- if X <> checkExt then
- X = newExt
- myname = myname & X
- member(i, myCast).name = myname
- end if
- end repeat
- the itemDelimiter = saveItemDelimiter
- end
-